package com.aigou.service;

import com.aigou.entity.User;

import java.util.List;

public interface UserService {

    //查询所有用户
   List<User> findAll();

   //按id查询用户
    User findById(String userId);

    //插入新用户
    boolean save(User user);

    //删除用户
    boolean remove(String userId);

    //更新用户
    boolean update(User user);
}
